﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ColorList.ascx.cs" Inherits="ColorList" %>
<div class="MainFilter">
    <span class="headertext">Nhóm:</span>
    <asp:DropDownList ID="cmbAlbum" runat="server" Width="200px" AutoPostBack="True"
        OnSelectedIndexChanged="cmbAlbum_SelectedIndexChanged">
    </asp:DropDownList>
</div>
<asp:GridView ID="grvFileInfo" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    PageSize="20" CssClass="adminlist" OnPageIndexChanging="grvFileInfo_PageIndexChanging">
    <Columns>
        <asp:TemplateField ItemStyle-Width="20px">
            <HeaderTemplate>
                <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
            </HeaderTemplate>
            <ItemTemplate>
                <input runat="server" id="chkSelect" value='<%# "?mod=" +  WebComponents.ConvertType.Encode(this.AddModule) + "&id=" + Eval("ColorID") %>'
                    title='<%# Eval("ColorID") %>' type="checkbox" />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="ID">
            <ItemTemplate>
                <asp:Label ID="lblFileID" runat="server" Text='<%# Eval("ColorID") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle Width="40px" />
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tên màu">
            <ItemTemplate>
                <a href='?mod=<% = WebComponents.ConvertType.Encode(this.AddModule) %>&id=<%# Eval("ColorID")  %>'>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("ColorName") %>'></asp:Label>
                </a>
            </ItemTemplate>
            <HeaderStyle Width="150px" HorizontalAlign="Left" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Màu sắc">
            <ItemTemplate>               
                    <img src="../<%# Eval("ColorImage") %>" style="width: 42px; height: 24px;"/>               
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <div align="center" id="EmptyData">
            Không có thông tin...</div>
    </EmptyDataTemplate>
    <RowStyle CssClass="row0" />
    <AlternatingRowStyle CssClass="row1" />
</asp:GridView>
